package com.djmw.mouse.devtools;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class UpdateFunctionGen {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		String obj = "memberUser";
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = null, line2;
		String[] array;
		String output = "";
		while ((line = br.readLine()) != null) {
			if (line.trim().equals("exit")) {
				break;
			}
			array = line.split(";");
			line2 = array[0].trim();
			if (line2.isEmpty()) {
				continue;
			}
			array = line2.split(" ");
			line2 = array[array.length - 1];
			output += line2 + " = " + obj + ".get" + line2.substring(0, 1).toUpperCase() + line2.substring(1) + "();\n";
		}
		System.out.println();
		System.out.println(output);
	}

}
